(function(window,undefined){
    $.fn.lazyLoad=function(){
    let time=null
    let this_=this
    function lazy(){
    if(time)clearInterval(time)
    time=setTimeout(()=>{
        let windowH=window.innerHeight||document.documentElement.clientTop
        let scrollH=document.body.scrollTop||document.documentElement.scrollTop
        let sumH=windowH+scrollH
        // let imgs=document.querySelectorAll('img')
       for(let i=0;i<this_.length;i++){
           if(sumH>this_[i].offsetTop){
            //    let datas=imgs[i].dataset.original
            //    imgs[i].setAttribute('src',datas)
            this_[i].src=this_[i].getAttribute('data-src')
           }
       }
    },100)
   }
   lazy()
   window.onscroll=lazy
    }
})(window)